import BasePath from "../config";

const link = {
	path: `${BasePath}/short-connection/link`,
	name: 'link',
	component: () => import('@/views/home/operate-panel/short-connection/link.vue'),
	meta: {
		keepAlive: false
	}
}
const records = {
	path: `${BasePath}/short-connection/records`,
	name: 'records',
	component: () => import('@/views/home/operate-panel/short-connection/records.vue'),
	meta: {
		keepAlive: false
	}
}
export default {
	path: `${BasePath}/short-connection`,
	name: 'short-connection',
	component: () => import('@/views/home/operate-panel/short-connection/tab-control.vue'),
	redirect:`${BasePath}/short-connection/link`,
	meta: {
		keepAlive: false,
		tabs:[
			{label: '短链接生成',name:'link'},
			{label: '生成记录',name:'records'},
		]
	},
	children: [
		link,
		records
	]
}